package com.zhixin.fans.ks.ui.base;

import android.content.Intent;
import android.os.Bundle;

import com.zhixin.fans.ks.CoupleApp;
import com.zhixin.fans.ks.ui.login.LoginActivity;

public abstract class BaseNeedLoginFragmentActivity extends BaseDaggerFragmentActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        if (!((CoupleApp) getApplicationContext()).getCoupleAppComponent().getUserInfoManager().isLogin()) {
            startActivity(new Intent(this, LoginActivity.class));
            finish();
        }
        super.onCreate(savedInstanceState);
    }



}
